import request from '@/libs/request';

export default {
	//获取航空手册数据
	getBookList: (options = {}) => {
		return request.get('/book/listBook', {}, options)
	},
	//获取指定页
	getBookPage: (options = {}) => {
		return request.get('/book/getPage/' + options.id, {}, {
			responseType: "arraybuffer"
		})
	},
	//获取指定章节的所有页
	getBookListPage: (options = {}) => {
		return request.get('/book/listPage/' + options.chapterId, {}, {})
	},
}
